package com.mb.app.task;

import com.mb.app.service.IProductPvUvService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 产品点击PVUV跑批任务
 *
 * @author liliping
 * @create 2019-03-26 7:24 PM
 **/
@Component
@Slf4j
public class ProductPvUvJob implements Job {

    @Autowired
    private IProductPvUvService productPvUvService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("ProductPvUvJob execute ...");
        productPvUvService.runProductPvUv();
    }
}
